package com.group.eams.entity;

import com.sun.istack.internal.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * Created by Doctor Who on 2016/11/2.
 */
public class Student {

    /**
     * id : 1
     * name : 谢孙绵
     * sex : 男
     * age : 22
     * cellphone : 34343434343
     * email : wtf@gmail.com
     * idCard : 1111111113434334
     * address : 湖北省武汉市洪山区珞南街道升升学生公寓--家庭地址
     * birthdate : 1994-11-16
     * college : 武汉理工大学计算机系  --所在院校
     * qq : 113434343
     * parentName : 谢逊
     * parentPhone : 1343434343434
     * province : hubei
     * city : wuhan
     * description : handsome
     */

    private Integer id;
    @NotNull
    private String name;

    private Integer sex; //0表示保密 1表示男 2表示女
    private Integer age;
    private String cellphone;
    private String email;
    private String idCard;
    private String address;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthdate; //生日
    private String college;
    private String qq;
    private String parentName;
    private String parentPhone;
    private String province;
    private String city;
    private String description;
    private Integer intention;
    private Integer studentMark;
    private Integer employeeId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getParentPhone() {
        return parentPhone;
    }

    public void setParentPhone(String parentPhone) {
        this.parentPhone = parentPhone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getIntention() {
        return intention;
    }

    public void setIntention(Integer intention) {
        this.intention = intention;
    }

    public Integer getStudentMark() {
        return studentMark;
    }

    public void setStudentMark(Integer studentMark) {
        this.studentMark = studentMark;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    @Override
    public String toString(){
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", idCard='" + idCard + '\'' +
                ", birthdate=" + birthdate +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", qq='" + qq + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", parentName='" + parentName + '\'' +
                ", parentPhone='" + parentPhone + '\'' +
                ", description='" + description + '\'' +
                ", intention='" + intention + '\'' +
                ", studentMark='" + studentMark + '\'' +
                ", employeeId='" + employeeId + '\'' +
                '}';
    }
}
